//
//  HEFindServerMenuView.m
//  HEFindServerMenuView
//
//  Created by 周亚楠 on 2019/12/5.
//  Copyright © 2019 Zhou. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "HEBrandModel.h"
#import "HEFindFiterModel.h"

@class HEFindServerMenuView;
@class HEDeptIndexPath;

/** 下拉展示类型 */
typedef NS_ENUM(NSUInteger, HEFilterMenuDownType) {

    
    HEFilterMenuDownTypeOnlyList,    //单列表
    HEFilterMenuDownTypeOther,    // 多条件筛选

    HEFilterMenuDownTypeTwoLists,    //双列表
    HEFilterMenuDownTypeOnlyItem,    //可点item
    HEFilterMenuDownTypeItemInput,   //可点item加输入框
};

/** 菜单类型 */
typedef NS_ENUM(NSUInteger, HEFilterMenuType) {
    HEFilterMenuTypeFindDoct,    // 找医生
    HEFilterMenuTypeFindTeam,    // 找团队
};

@protocol HEFindServerMenuViewDelegate <NSObject>

- (void)menuView:(HEFindServerMenuView *)view didSelectWithHospModel:(HEFindFiterModel *)hspModel deptModel:(HEFindFiterModel *)deptModel;

- (void)menuView:(HEFindServerMenuView *)view didSelectSortWithModel:(HEFindFiterModel *)model;

/** 确定回调 */
- (void)menuView:(HEFindServerMenuView *)menuView didSelectConfirmWithBradIds:(NSString *)brandis minPrice:(NSString *)minPrice maxPrice:(NSString *)maxPrice;

@end

@interface HEFindServerMenuView : UIView

@property (nonatomic, assign) id <HEFindServerMenuViewDelegate> delegate;

@property (nonatomic, strong) NSMutableArray <HEBrandModel *>*brandArr;

@property (nonatomic, strong) NSMutableArray <HEFindFiterModel *> *deptList;

@property (nonatomic, strong) NSMutableArray <HEFindFiterModel *> *ratiosList;

@property (nonatomic, assign) HEFilterMenuType menuType;

/** 快速初始化
 *  maxHeight:下拉列表最大展示高度
 */
- (instancetype)initWithFrame:(CGRect)frame maxHeight:(CGFloat)maxHeight;

- (instancetype)initWithFrame:(CGRect)frame maxHeight:(CGFloat)maxHeight menuType:(HEFilterMenuType)type;
  
- (void)hideMenuList;

@end

@interface HEDeptIndexPath : NSObject

@property (nonatomic, assign) NSInteger currentLeftIndex;
@property (nonatomic, assign) NSInteger selectLeftIndex;
@property (nonatomic, assign) NSInteger selectRightIndex;

@end
 

